package br.com.drestranho.escola.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name="chamada_item", schema="public")
public class ChamadaItem implements Serializable {
	@Id
	@SequenceGenerator(name="seq_chamada_item", sequenceName="seq_chamada_item", allocationSize=1)
	@GeneratedValue(generator="seq_chamada_item", strategy=GenerationType.SEQUENCE)
	@Column(name="id")
	Integer id;
	@ManyToOne
    @JoinColumn(name="id_chamada", referencedColumnName="id")
	Chamada chamada;
	@Column(name="id_matricula")
	Matricula matricula;
	@Column(name="status")
	Boolean status;
	
	public Integer getId() {
		return id;
	}
	
	public void setId(Integer id) {
		this.id = id;
	}
	
	public Chamada getChamada() {
		return chamada;
	}
	
	public void setChamada(Chamada chamada) {
		this.chamada = chamada;
	}
	
	public Matricula getMatricula() {
		return matricula;
	}

	public void setMatricula(Matricula matricula) {
		this.matricula = matricula;
	}

	public Boolean getStatus() {
		return status;
	}
	
	public void setStatus(Boolean status) {
		this.status = status;
	}
	
}
